package source;

import java.io.IOException;
import utils.IniFile;

/**
 *
 * @author admin
 */
public class mpSetting {
	final public String sServerPath;
	final public int iServerTimeSync;
	final public int iClientCount;
	final public String[] sClientPath;
	
	mpSetting() throws IOException {
		IniFile setting = new IniFile("setting.ini");
		sServerPath		= setting.getString("server", "serverPath", null);
		iServerTimeSync	= setting.getInt("server", "serverTimeSync", 300000);
		iClientCount	= setting.getInt("client", "clientCount", 1);
		sClientPath		= new String[iClientCount];
		for(int i = 0; i < iClientCount; i++) {
			sClientPath[i] = setting.getString("client", "clientPath" + Integer.toString(i + 1), null);
		}
	}
}
